package com.kingsoft.gtdsys;

import com.kingsoft.gtdsys.util.GlobalValues;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class GtdSystem extends Activity {
    /** Called when the activity is first created. */
	
	private Button watchIndexBtn;
	private Button watchRefBtn;
	private Button watchMaybeBtn;
	private Button watchTrashBtn;
	private Button aboutBtn;
	private Button exitBtn;
	
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        GlobalValues.context = this.getApplicationContext();
        watchIndexBtn = (Button)findViewById(R.id.main_watchIndexBtn);
        watchIndexBtn.setOnClickListener(new watchIndexBtnListener());
        watchRefBtn = (Button)findViewById(R.id.main_watchRefBtn);
        watchRefBtn.setOnClickListener(new watchRefBtnListener());
        watchMaybeBtn = (Button)findViewById(R.id.main_watchMayBeBtn);
        watchMaybeBtn.setOnClickListener(new watchMayBeBtnListener());
        watchTrashBtn = (Button)findViewById(R.id.main_watchTrashBtn);
        watchTrashBtn.setOnClickListener(new watchTrashBtnListener());
        aboutBtn = (Button)findViewById(R.id.main_aboutBtn);
        aboutBtn.setOnClickListener(new aboutBtnListener());
        exitBtn = (Button)findViewById(R.id.main_exitBtn);
        exitBtn.setOnClickListener(new exitBtnListener());
    }
    
    class watchIndexBtnListener implements OnClickListener{

		@Override
		public void onClick(View arg0) {
			// TODO Auto-generated method stub
			Intent intent = new Intent();
			intent.setClass(GtdSystem.this, InboxAct.class);
			GtdSystem.this.startActivity(intent);
		}
    	
    	
    }
    
    class watchRefBtnListener implements OnClickListener{

		@Override
		public void onClick(View v) {
			// TODO Auto-generated method stub
			
		}
    	
    }
    
    class watchMayBeBtnListener implements OnClickListener{

		@Override
		public void onClick(View v) {
			// TODO Auto-generated method stub
			
		}
    	
    }
    
    class watchTrashBtnListener implements OnClickListener{

		@Override
		public void onClick(View v) {
			// TODO Auto-generated method stub
			
		}
    	
    }
    
    class aboutBtnListener implements OnClickListener{

		@Override
		public void onClick(View v) {
			// TODO Auto-generated method stub
			
		}
    	    	
    }
    
    class exitBtnListener implements OnClickListener{

		@Override
		public void onClick(View v) {
			// TODO Auto-generated method stub
			System.exit(0);
			
		}
    	
    }
      
}